package com.aloda.ojuser.service;

import com.aloda.ojuser.pojo.dto.EmailCodeDTO;
import com.aloda.ojuser.pojo.vo.VerifyVO;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @Author aloda
 * @Date 2025/4/20 14:16
 */
public interface VerifyService {

    /**
     * 获取图片验证码
     * @param request
     * @return
     */
    VerifyVO getImgCode(HttpServletRequest request) throws IOException;

    /**
     * 获取邮箱验证码
     * @param emailCodeDTO
     */
    boolean getEmailCode(EmailCodeDTO emailCodeDTO);
}
